package com.example.administrator.myapplication.set;

import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.support.v7.widget.Toolbar;

import com.example.administrator.myapplication.R;



public class SetMainActivity extends FragmentActivity{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setmain);
        getSetMainFragment();
    }

    public void getSetMainFragment(){
        SetMainFragment fragment =new SetMainFragment();
        FragmentManager fm =this.getFragmentManager();
        FragmentTransaction ft =fm.beginTransaction();
        ft.replace(R.id.fragment_setmain,fragment);
        ft.commit();

    }
}
